package com.xyz.business.dao;

import java.sql.SQLException;
import java.util.Date;
import java.util.List;

import com.xyz.business.bean.Enterprise;
import com.xyz.business.bean.Report;
import com.xyz.business.bean.Cover;

/**
 * 报告Dao层
 * 
 * @author xyzjh
 * 
 */
public interface ReportDao {

	/**
	 * 插入报告表
	 * 
	 * @param report
	 *            报告
	 * @param enterprise
	 *            企业
	 * @param cover
	 * @throws SQLException
	 */
	public void insert(Report report, Enterprise enterprise, Cover cover)
			throws SQLException;

	/**
	 * 查询报告
	 * 
	 * @param report
	 *            报告信息
	 * @param enterprise
	 *            企业信息
	 * @param pageSize
	 * @param pageNow
	 * @return
	 * @throws SQLException
	 *             SQLException
	 */
	public List query(Report report, Enterprise enterprise, int pageNow,
			int pageSize) throws SQLException;

	/**
	 * @param report
	 * @param enterprise
	 * @return
	 * @throws SQLException
	 */
	public int queryReportCount(Report report, Enterprise enterprise)
			throws SQLException;

	public void deleteReport(String rptid) throws SQLException;

	public void editReport(String rptid) throws SQLException;

	public Report queryReportByRptId(String rid) throws SQLException;

	public void update(Report report, Enterprise enterprise, Cover cover) throws SQLException;

	public void hide(String rptid) throws SQLException;

	public List queryCollect(Report report, Enterprise enterprise,
			Date beginTime, Date endTime) throws SQLException;
}
